<?

$fs_eve_man_registrations = new Fieldset (array (
	db_conn=>$_GLOBAL_DBH,
	relation=>"eve_man_registrations",
	title=>"Event Registrations",
	fieldset=>array (
		array (name=>"id",label=>"ID",type=>"numeric",
				value=>$_REQUEST["registration_id"],
				input=>"hidden",primary_key=>true),
		array (name=>"employee_id",label=>"Employee ID",type=>"numeric",
				input=>"hidden",optional=>true),
		array (name=>"event_id",label=>"Managed Event",type=>"any",
				value=>$_REQUEST["event_id"],
				relation=>array(foreign=>"eve_man_events",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM eve_man_events",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"attendee_id",label=>"Attendee",type=>"any",
				value=>$_REQUEST["attendee_id"],
				relation=>array(foreign=>"eve_man_attendees",key=>"id",
				field=>"first"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,CONCAT(first,' ',last) AS name FROM eve_man_attendees",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"fee_schedule_id",label=>"Fee Schedule",type=>"any",
				value=>$_REQUEST["fee_schedule_id"],
				relation=>array(foreign=>"eve_man_fee_schedules",key=>"id",
				field=>"fee_description"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,fee_description FROM eve_man_fee_schedules",
				columns=>array (key=>"id",value=>"fee_description"),
		),
		array (name=>"fee",label=>"Fee",type=>"decimal",
				input=>"field"),
		array (name=>"registration_date",label=>"Registration Date",type=>"any",
				input=>"date",value=>_app_date("date_start")),
		
		array (name=>"purchase_order",label=>"Purchase Order",type=>"alphanumeric",
				input=>"field"),
		array (name=>"sales_tax_rate",label=>"Sales Tax Rate",type=>"decimal",
				input=>"field"),
	),
));

$fs_eve_man_registrations->parse ();

?>
